<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // const boolean = new Boolean(false);
        // console.log(typeof boolean);
        // console.log(boolean.valueOf());
        // if (boolean) {
        //     console.log("uiudsifi");
        // }

        // let hd = false;
        // console.log(typeof hd)
        // if (hd) {
        //     console.log("hdcms");
        // }

        //隐式转换boolean 类型 0 false
        let number = -99;
        if (number) {
            console.log(number)
        }
        console.log(number == false);

        let hd = "-1";
        console.log(hd == false);
    </script>
</body>

</html>